package com.atguigu.gmall.gmallsuger.service;

import com.atguigu.gmall.gmallsuger.mapper.VisitorMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author lizhenchao@atguigu.cn
 * @Date 2021/9/4 10:02
 */
@Service
public class VisitorStatsServiceImpl implements VisitorStatsService{
    
    @Autowired
    VisitorMapper visitor;
    @Override
    public List<Map<String, Object>> statsByHour(int date) {
        return visitor.statsByHour(date);
    }
    
    @Override
    public List<Map<String, Object>> statsByNewOrOld(int date) {
        return visitor.statsByNewOrOld(date);
    }
    
}
